import http from '../utils/http'

/* 获取用户未读信息数量 */
export const getUnread = () => {
  return http.get('/meassage/getUnread')
}

/* 标记已读状态 */
export const ifRead = (id) => {
  return http.get(`/meassage/read?id=${id}`)
}

/* 用户查看自己公告 */
export const getMeassage = () => {
  return http.post('/meassage/show')
}